home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4409 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: phoenix.owl.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <4gmlu0$3a2@sulla.cyberstore.ca> <4gnpvh$r7@maureen.teleport.com>
  4. From: "Frank Wille" <frank@phoenix.owl.de>
  5. Date: Wed, 28 Feb 1996 20:06:12 +0200
  6. X-NewsReader: IntuiNews 1.3b Beta 3 (5.11.95)
  7. Subject: Re: SAS ASM question, retry
  8. Message-ID: <42116573@phoenix.owl.de>
  9. Organization: Phantasm
  10.  
  11. Stephan Schaem wrote on 24 Feb 1996 19:46:57 GMT
  12. about "Re: SAS ASM question, retry" :
  13.  
  14.  
  15. SS> Shawn Chin (daemauk@dsoe.com) wrote:
  16. SS> : In assembly, what does "set *-<label>" imply?  (The SAS assembler
  17.  
  18. SET assigns the value of an expression (*-<label> in you example)
  19. to a symbol, much like EQU does. The big difference is, that a
  20. set-symbol can change its value multiple times while the assembler
  21. makes its way through the source. With SET you can, for example,
  22. implement a counter:
  23.  
  24. counter set     counter+1
  25.  
  26. The symbol '*' is a comment, when appearing in the first column of
  27. a line. In an operand, '*' is replaced by the current program
  28. counter value. So your SET-example will always assign the distance
  29. to <label>.
  30.  
  31.  
  32. SS> : doesn't like this expression, probably because the * is a comment
  33.  
  34. In many assembler implementations, like SAS-Asm or PhxAss, the SET
  35. directive only permits *absolute* expressions.
  36.  
  37.  
  38. SS> : character) Is SET a compiler directive to be used in conjunction
  39. SS> : with LIST and NOLIST?  I don't kow what LIST ad NOLIST are either.
  40. SS> : =)
  41.  
  42. Yes, it's a directive, and you can apply it in any conjunction you
  43. want. ;)
  44.  
  45.  
  46. SS> Well, "LIST", "NOLIST" is usually there for debugging macro or the
  47.  
  48. They control whether the following source text will go to a listing
  49. file, if generated, or not.
  50.  
  51.  
  52. SS> assembler. It turn on disassembly output.. I dunno what this "SET"
  53. SS> directive is.
  54.  
  55. See above.
  56.  
  57.  
  58. -- _
  59. _ // Frank      EMail: frank@phoenix.owl.de
  60. \X/             IRC:   Phx @ #amiga(ger)
  61.  
  62.